home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_root.vars.gameon == 1)
- {
- if(316 < _X)
- {
- _root.sounds.ballhit_sfx.start(0.1,1);
- _root.ball._x = 315;
- set("_root.vars.:ballx",eval("_root.vars.:ballx") * -1);
- }
- if(_X < 4)
- {
- _root.sounds.ballhit_sfx.start(0.1,1);
- _root.ball._x = 5;
- set("_root.vars.:ballx",eval("_root.vars.:ballx") * -1);
- }
- if(_Y < 22)
- {
- _root.sounds.ballhit_sfx.start(0.1,1);
- set("_root.vars.:bally",eval("_root.vars.:bally") * -1);
- }
- if(270 < _Y)
- {
- _root.func.miss();
- if(4 < _root.vars.miss)
- {
- _root.gotoAndPlay("over");
- }
- else
- {
- _root.gotoAndPlay("miss");
- }
- _root.vars.gameon = 0;
- set("_root.vars.:ballx",3);
- set("_root.vars.:bally",-3);
- }
- _X = _X + eval("_root.vars.:ballx");
- _Y = _Y + eval("_root.vars.:bally");
- updateAfterEvent();
- }
- }
-